//
//  AmsClient.h
//  IVCS
//
//  Created by nfl on 2022/2/28.
//  Copyright © 2022 zco user. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CallBackObject.h"
#import "IvcsAgentDelegate.h"
NS_ASSUME_NONNULL_BEGIN

@interface AmsClient : NSObject

declareSingleInstance(Ams)

@property(nonatomic , weak) id<IvcsAgentDelegate> delegate;

/// ringData 中包含 sessionId 和 invitaionId
@property(nonatomic , strong) ZcoModelRing *ringData;

@property(nonatomic , copy) NSString *baseUrl;
/// socketIo access token
@property(nonatomic,copy)NSString *accessToken;

/// connect ams socketio
/// @param baseUrl url
/// @param token access token
/// @param complete callback
-(void)connectWithUrl:(nonnull NSString *)baseUrl andToken:(nonnull NSString *)token complete:(completeBlock)complete;

-(void)sendMessage:(NSString *)type withData:(NSDictionary *_Nullable)data complete:(completeBlock)complete;

@end

NS_ASSUME_NONNULL_END
